package com.wlw.admin.openeye.mvp.contract

import com.wlw.admin.openeye.base.IBaseView
import com.wlw.admin.openeye.base.IPresenter
import com.wlw.admin.openeye.mvp.model.bean.HomeBean

interface SearchContract {


    interface View : IBaseView {
        fun setHotWordData(string: ArrayList<String>)

        fun setSearchResult(issue: HomeBean.Issue)

        fun closeSoftKeyboard()

        fun setEmptyView()

        fun showError(errorMsg: String, errorCode: Int)
    }

    interface Presenter : IPresenter<View> {

        fun requestHotWordData()

        fun querySearchData(words: String)

        fun loadMoreData()
    }
}